package com.engine.salary.service;

import com.engine.salary.entity.taxagent.param.TaxAgentSaveBaseParam;
import com.engine.salary.entity.taxagent.po.TaxAgentBasePO;
import com.engine.salary.sys.entity.vo.UploadConfigResponse;

/**
 * 个税扣缴义务人基础信息
 * <p>Copyright: Copyright (c) 2022</p>
 * <p>Company: 泛微软件</p>
 *
 * @author qiantao
 * @version 1.0
 **/
public interface TaxAgentBaseService {

    /**
     * 是否开启分权
     *
     * @return
     */
    Boolean isOpenDevolution();

    /**
     * 获取个税扣缴义务人基本信息
     *
     * @return
     */
    TaxAgentBasePO getBaseInfo();

    /**
     * 保存个税扣缴义务人信息
     *
     * @param saveBaseParam
     * @return
     */
    String save(TaxAgentSaveBaseParam saveBaseParam);

    TaxAgentBasePO getConfig();

    UploadConfigResponse.Result parseConfig(TaxAgentBasePO config);
}
